﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Configuration;
using System.Data;
using SIPO.Library.DataAccess.Report;
using SIPO.Library.DomainObject.Administration.Catalog;
using SIPO.Library.DataAccess.Administration.Catalog;
using SIPO.Web.Support;


public partial class reports_Transaction_rptHistoryTransaction : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                //recTransactionTypeRepo recTransactionTypeDal = new recTransactionTypeRepo(ConfigurationManager.ConnectionStrings["SIPOConn"].ConnectionString);
                ////populate dropdownlist transactionType
                //List<recTransactionType> transTypes = recTransactionTypeDal.GetListOnBilling();

                ddlJenisTrans.Items.Clear();
                //if (transTypes.Count > 0)
                //{
                    //transTypes.ForEach(delegate(recTransactionType transType)
                    //{
                        ddlJenisTrans.Items.Add(new ListItem("Tagihan", "Tagihan"));

                        ddlJenisTrans.Items.Add(new ListItem("Penyesuaian", "Penyesuaian"));
                        ddlJenisTrans.Items.Add(new ListItem("Pembayaran", "Pembayaran"));

                        //});
                //}
                ddlJenisTrans.Items.Insert(0, new ListItem("-- semua jenis transaksi --", string.Empty));
                //try
                //{
                //    var strId = (string)hfId.Value;

                //    string[] ids = strId.Split(',');
                //    foreach (string id in ids)
                //    {
                //        string ID = id;
                //        executeProc(ID);
                //    }


                //}
                //catch (Exception ex)
                //{
                //    throw (ex);
                //}


            }

        }
      
    }


